<style type="text/css" xmlns="http://www.w3.org/1999/html">
    .addon{
        font-size: 14px;
        color: red;
    }
</style>

<div class="panel panel-default panel-intro">

    <div class="panel-heading">
        {:build_heading(null,FALSE)}
        <ul class="nav nav-tabs" data-field="status">
            <li class="active"><a href="#t-three"  data-toggle="tab">基础设置</a></li>
            <li class=""><a href="#t-one"  data-toggle="tab">会员设置</a></li>
            <li class=""><a href="#t-two"  data-toggle="tab">分销设置</a></li>
            <li class=""><a href="#t-five"  data-toggle="tab">订单配置</a></li>
        </ul>
    </div>

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade" id="t-one">
                <form id="edit-form1" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="{:url('config.basics/edit')}">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Member_day')}:</label>
                        <div class="col-xs-12 col-sm-4">
                            <input id="c-member_day" class="form-control" name="row[member_day]" type="number" value="{$row.member_day|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Member_price')}:</label>
                        <div class="col-xs-12 col-sm-4">
                            <input id="c-member_price" class="form-control" name="row[member_price]" type="number" value="{$row.member_price|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Member_buyback')}:</label>
                        <div class="col-xs-12 col-sm-4">
                            <input id="c-member_buyback" class="form-control" name="row[member_buyback]" type="number" value="{$row.member_buyback|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group layer-footer">
                        <label class="control-label col-xs-12 col-sm-2"></label>
                        <div class="col-xs-12 col-sm-8">
                            <button type="submit" class="btn btn-primary btn-embossed">{:__('OK')}</button>
                            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                        </div>
                    </div>
                </form>
            </div>
            <div class="tab-pane fade" id="t-two">
                <form id="edit-form2" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="{:url('config.basics/edit')}">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Distribution_lvl')}:</label>
                        <div class="col-xs-12 col-sm-8">
                            <div class="col-xs-12 col-sm-8">
                                <div class="radio">
                                    {foreach name="memberBuybackList" item="vo"}
                                    <label for="row[distribution_lvl]-{$key}"><input id="row[distribution_lvl]-{$key}" name="row[distribution_lvl]" type="radio" value="{$key}" {in name="key" value="$row.distribution_lvl"}checked{/in} /> {$vo}</label>
                                    {/foreach}
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('One_commission_price')}:</label>
                        <div class="col-xs-12 col-sm-4">
                            <input id="c-one_commission_price" class="form-control" name="row[one_commission_price]"  type="number" value="{$row.one_commission_price|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Two_commission_price')}:</label>
                        <div class="col-xs-12 col-sm-4">
                            <input id="c-two_commission_price" class="form-control" name="row[two_commission_price]" type="number" value="{$row.two_commission_price|htmlentities}">
                        </div>
                    </div>
                    <div class="form-group layer-footer">
                        <label class="control-label col-xs-12 col-sm-2"></label>
                        <div class="col-xs-12 col-sm-8">
                            <button type="submit" class="btn btn-primary btn-embossed">{:__('OK')}</button>
                            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                        </div>
                    </div>
                </form>
            </div>

            <div class="tab-pane fade active in" id="t-three">
                <form id="edit-form3" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="{:url('config.basics/edit')}">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Advert_img')}:</label>
                        <div class="col-xs-12 col-sm-6">
                            <div class="input-group">
                                <input id="c-advert_img" class="form-control" size="50" name="row[advert_img]" type="text" value="{$row.advert_img|htmlentities}">
                                <div class="input-group-addon no-border no-padding">
                                    <span><button type="button" id="faupload-advert_img" class="btn btn-danger faupload" data-input-id="c-advert_img" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-advert_img"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                    <span><button type="button" id="fachoose-advert_img" class="btn btn-primary fachoose" data-input-id="c-advert_img" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                </div>
                                <span class="msg-box n-right" for="c-advert_img"></span>
                            </div>
                            <ul class="row list-inline faupload-preview" id="p-advert_img"></ul>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Withdrawal_interdict')}:</label>
                        <div class="col-xs-12 col-sm-4">
                            <div class="input-group">
                                <input id="c-withdrawal_interdict" class="form-control" name="row[withdrawal_interdict]"  type="number" value="{$row.withdrawal_interdict|htmlentities}">
                                <div class="input-group-addon">元</div>
                            </div>
                            </br>
                            <div class="addon">小于等于0元代表不限制</div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Is_open')}:</label>
                        <div class="col-xs-12 col-sm-4">
                            {:build_radios('row[is_open]', ['1'=>"关闭",'0'=>"开启"], $row['is_open'])}
                        </div>
                    </div>
                    <div class="form-group layer-footer">
                        <label class="control-label col-xs-12 col-sm-2"></label>
                        <div class="col-xs-12 col-sm-8">
                            <button type="submit" class="btn btn-primary btn-embossed">{:__('OK')}</button>
                            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                        </div>
                    </div>
                </form>
            </div>

            <div class="tab-pane fade" id="t-five">
                <form id="edit-form4" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="{:url('config.basics/edit')}">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Packing_fee')}:</label>
                        <div class="col-xs-12 col-sm-4">
                            <div class="input-group">
                                <input id="c-packing_fee" class="form-control" name="row[packing_fee]"  type="number" value="{$row.packing_fee|htmlentities}">
                                <div class="input-group-addon">元/份</div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Distribution_fee')}:</label>
                        <div class="col-xs-12 col-sm-4">
                            <div class="input-group">
                                <input id="c-distribution_fee" class="form-control" name="row[distribution_fee]" type="number" value="{$row.distribution_fee|htmlentities}">
                                    <div class="input-group-addon">元/km</div>
                                </div>
                            </div>
                    </div>
                    <div class="form-group layer-footer">
                        <label class="control-label col-xs-12 col-sm-2"></label>
                        <div class="col-xs-12 col-sm-8">
                            <button type="submit" class="btn btn-primary btn-embossed">{:__('OK')}</button>
                            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                        </div>
                    </div>
                </form>
            </div>

        </div>
    </div>
</div>
